<?php


namespace App\Models;


class ImPersonalCertificate extends BaseModel
{
    protected $table = 'im_personal_certificate';

    const CERTIFICATION_ING = 1;//认证中
    const CERTIFICATION_SUCCESS = 2;//已认证
    const CERTIFICATION_FAILED = 3;//认证失败

    /**
     * 获取状态描述
     * @param $status
     * @return string
     */
    public static function getStatus($status)
    {
        $str = '';
        switch ($status) {
            case self::CERTIFICATION_ING:
                $str = '认证中';
                break;
            case self::CERTIFICATION_SUCCESS:
                $str = '已认证';
                break;
            case self::CERTIFICATION_FAILED:
                $str = '认证失败';
                break;
        }
        return $str;
    }
}
